home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_077 / samples / read.me < prev    next >
Text File  |  1992-05-06  |  2KB  |  48 lines

  1. This directory contains a sampling of Draco programs. Some are simple
  2. benchmarks, others approach being useful. The following list gives a brief
  3. description of each one.
  4.  
  5. ack.d - program to calculate Ackerman's function - the slow, doubly
  6.     recursive way. If you're not familiar with this function, you might
  7.     want to experiment with it. Warning: it consumes stack space by the
  8.     megabyte. I allocated a one meg stack and let 'ack 4 1' run for an
  9.     hour, but it hadn't completed when I lost patience.
  10.  
  11. count.d - simple benchmark to count to 1 million
  12.  
  13. crypt.d - encrypt/decrypt program. Unfortunately, the way this works, it
  14.     depends on the file size being a multiple of 128 (as it is on CP/M).
  15.     Fixing it isn't too hard - round up to a multiple of 128 and store the
  16.     true size (needed for decryption) somewhere in the encrypted file. The
  17.     algorithm isn't very good, though, so I'm not bothering.
  18.  
  19. fib.d - another recursive benchmark - this one for Fibonacci numbers
  20.  
  21. hanoi.d - a version of the classic "Towers of Hanoi" program
  22.  
  23. hedit.d - a full-screen hex/char file editor (no insert/delete, just
  24.     replace). Uses the CRT library and shows random-access file I/O. Link
  25.     using "ex dr1lib2 crt hedit".
  26.  
  27. matrix.d - shows use of conformant array parameters
  28.  
  29. matttime.d - times matrix operations
  30.  
  31. pas.d - uses varying print widths and array assignment to print a portion
  32.     of Pascal's triangle
  33.  
  34. qfunc.d - prints some Q-function values (I forget what they are!!)
  35.  
  36. sieve.d - standard Sieve of Eratosthenes benchmark
  37.  
  38. strings.d - locates and prints ASCII strings in binary files
  39.  
  40. ttt.d - plays Tic-Tac-Toe against you. (Not very well)
  41.  
  42. wator.d - runs the Wator simulation from A. K. Dewdney's December 1984
  43.     "Computer Recreations" column. This is linked by
  44.     "ex dr1lib crt wator". Try NSharks 10, NFish 100, FBreed 3, SBreed 10,
  45.     Starve 5. (Start with 10 sharks and 100 fish, the fish breed every
  46.     3 steps, the sharks breed every 10 steps, and a shark will die if it
  47.     doesn't eat in 5 steps.)
  48.